{% extends "base.html" %}
{% block body %}
{% import "macros.html" as macros %}

<div id="main" role="main">
	<form id="batch_deal" method="post">
		<div class="album-title">
			<h5>{{ title }}<small> 数量: {{ count }}</small>
			</h5>
		</div>

		<ul id="tiles">
			<!-- These are our grid blocks -->
			{% for album in albums %}
			<li>
				<a href="
					{% if request.path == url_for('pic.tags') %}
						{{url_for('pic.one_tag',uid=album.id)}}
					{% elif request.path == url_for('pic.volumes') %}
					    {{url_for('pic.one_volume',uid=album.id, all=1)}}
					{% elif request.path == url_for('pic.actresses') %}
					    {{ url_for('pic.one_actress', uid=album.id, all=1) }}
					{% else %}
					    {{url_for('pic.one_album',uid=album.id, all=1)}}
					{% endif %}
				">{{ album.cover | safe }}</a>
				<div class="post-info">
					<div class="post-basic-info">
						<p>{{ album.name_html() | safe }}</p>
						{% if title == 'Volumes' %}
                            <p>
                                <i class="fa fa-user-circle-o"></i>&nbsp;
                                <a href="{{url_for('pic.one_actress',uid=album.actress.id)}}">
                                    {{album.actress.name}}
                                </a>
                            </p>
						{% endif %}
                        <p>{{ album.create_time_html() | safe }}</p>
					</div>
					<div class="post-info-rate">
						{% if album.label in ('album', 'volume', 'actress') %}
                            {{ album.rate_html() | safe }}
                        {% endif %}
                        {% if album.label in ('actress') %}
							<span><i class="fa fa-th-large"></i>&nbsp;{{ album.volume_amount }}</span>
                        {% endif %}
						{{ album.amount_html() | safe }}
						{{ album.pv_html() | safe }}
					</div>
					<div class="clear"> </div>
				</div>
			</li>
			{% endfor %}
			<!-- End of grid blocks -->
		</ul>
	</form>
</div>

{% endblock %}


{% block script %}

<!----wookmark-scripts---->
<script type="text/javascript">
// ajax加载更多图片 start
js_more_pics = {
        "page": {{page}},
        "url": "{{url_for('api.more')}}",
        "ajax_post_data": {'req': "{{request.path[5:]}}", 'id': "{{album_id}}","all": "{{load_all}}", "limit": "{{ request.args.limit }}"}
    }
// ajax加载更多图片 end
 </script>
<!----//wookmark-scripts---->
{% endblock %}